import {Modal} from "antd";
import React from "react";

export default function DeleteModal({open,onDeleteCancel,onDeleteOk,obj}:{open:boolean,onDeleteCancel:any,onDeleteOk:any,obj:any}){
  return (
    <Modal title={"删除"} okText={"确定"} cancelText={"取消"} okButtonProps={{ autoFocus: true }} destroyOnClose={true}
           open={open} onCancel={onDeleteCancel} onOk={() => onDeleteOk(obj)}>是否删除？</Modal>
  );
}